<?php require __DIR__ . '/inc_header.tpl.php';?>

  <div class="rj-head">
    <h1>PHPwork安装向导 —— 安装配置</h1>
  </div>
  
  <form action="<?php echo url(['install','index','step3']); ?>" method="post">
  <div class="rj-body">
    <div class="tt"></div>
    <div class="rj_form">
        <div class="formitm">
          <label class="lab">数据库地址：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="db_host" value="127.0.0.1" required />
          </div>
        </div>
        <div class="formitm">
          <label class="lab">数据库端口：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="db_port" value="3306" required />
          </div>
        </div>
        <div class="formitm">
          <label class="lab">数据库名称：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="db_name" value="phpwork"  required />
          </div>
        </div>
        <div class="formitm">
          <label class="lab">数据库用户名：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="db_user" value="root"  required />
          </div>
        </div>
        <div class="formitm">
          <label class="lab">数据库密码：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="db_pwd" value="" />
          </div>
        </div>
        <div class="formitm">
          <label class="lab">数据表前缀：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="table_prefix"  value="deep_" />
          </div>
        </div>
		
        <div class="formitm" style="display:none">
          <label class="lab">安全加密码：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="safe_key" value="<?php echo uniqid();?>"  />
          </div>
        </div>
        <div class="formitm" style="display:none">
          <label class="lab">COOKIE前缀：</label>
          <div class="ipt">
            <input type="text" class="rj_element" name="COOKIE_PREFIX" value="gqKrm_"  />
          </div>
        </div>
      
    </div>
  </div>
  
  <div class="rj-foot"> 
  	<a href="javascript:history.go(-1)">上一步</a>
    <button type="submit" class="submit">安装</button>
  </div>
  </form>

<?php require __DIR__ . '/inc_footer.tpl.php';?>